#ifndef __SPI_H__
#define __SPI_H__

#include "main.h"

#define SUCCESS 0
#define FAILURE 1

sbit MCLK=P1^0;
sbit SCLK=P1^1;
sbit SDA=P1^4;


void putbytespi(uchar ch);
uchar getbytespi();
unsigned char SPIReadRFID(unsigned char *cP);
unsigned char SPISendRFID(unsigned char *cP);

#endif